package com.zangbuge.hellonacos.config;

import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign客户端配置
 *
 * @author Li Huiming
 * @date 2022/1/8
 */
@Configuration
public class FeignClientConfig {

    /*@Bean
    public Contract feignContract() {
        return new Contract.Default();
    }*/

    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
        return new BasicAuthRequestInterceptor("lhm", "123456");
    }

}
